//
//  RTJAutoMarkButton.m
//  RuiTaiJinProject
//
//  Created by jayson on 2018/12/20.
//  Copyright © 2018年 leewei. All rights reserved.
//

#import "RTJAutoMarkButton.h"

@implementation RTJAutoMarkButton

- (void)layoutSubviews{
    [super layoutSubviews];

    self.titleLabel.x = CGRectGetMaxX(self.imageView.frame);
    self.titleLabel.width = 35;
    self.titleLabel.textAlignment = NSTextAlignmentRight;
    
    _lab = [[UILabel alloc]initWithFrame:CGRectMake(self.titleLabel.x+35, self.titleLabel.y+5, 30, 15)];
    _lab.textAlignment = NSTextAlignmentLeft;
    _lab.text = @"个月";
    _lab.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:14];
    _lab.textColor = self.selected==YES ?[UIColor whiteColor]:[UIColor colorForHex:@"#A0A7CA"];

    [self addSubview: _lab];
    
}

@end
